package hsp.admin.app.base.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Schema(description = "菜单表")
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("base_menu")
public class MenuPO extends BasePO {

    @Schema(description = "主键", example = "1001001")
    @NotBlank
    @TableId("id")
    private Integer id;

    @Schema(description = "程序主键", example = "1001")
    @NotBlank
    @TableField("app_id")
    private Integer appId;

    @Schema(description = "编码", example = "param")
    @NotBlank
    @TableField("code")
    private String code;

    @Schema(description = "名称", example = "参数管理")
    @NotBlank
    @TableField("name")
    private String name;

    @Schema(description = "状态", example = "1")
    @NotBlank
    @TableField("status")
    private String status;

    @Schema(description = "排序", example = "1001001")
    @TableField("ord_idx")
    private Integer ordIdx;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

}
